<html>
<head>
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>添加题目</title>
</head>
<?php
require_once("admin-header.php");
require_once ('../lang/cn.php');
include_once("kindeditor.php");

$allowAccess = isset($_SESSION['administrator']);
$allowAccess |= isset($_SESSION['problem_editor']);
if ( !$allowAccess ){
    echo "<a href='../loginpage.php'>未登录,请先登录</a>";
    exit(1);
}

?>
<body leftmargin="30" >
</p>
<div class="container">
    <form method=POST action=problem_add.php>
        <p style="color:#FF0000">题目备注示例：&nbsp;NOIP2011TGD1T1 &nbsp;&nbsp;NOIP2011PJT1</p>
        <input type=hidden name=problem_id value="New Problem">
        <p align=left>标题:<input class="input input-xxlarge" type=text name=title size=71></p>
        <p align=left>
            时间限制:<input class="input input-mini" type=text name=time_limit size=20 value=1> 秒 &nbsp;&nbsp;&nbsp;
            内存限制:<input class="input input-mini" type=text name=memory_limit size=20 value=128>&nbsp;&nbsp;MB
        </p>
        <p align=left>题目描述:<br>
            <textarea class="kindeditor" rows=13 name=description cols=100></textarea>
        </p>
        <p align=left>输入:<br>
            <textarea  class="kindeditor" rows=13 name=input cols=100></textarea>
        </p>
        </p>
        <p align=left>输出<br>
            <textarea  class="kindeditor" rows=13 name=output cols=100></textarea>
        </p>
        <p align=left>
            样例输入
            <textarea  class="input input-large"  rows=13 name=sample_input cols=50></textarea>
            样例输出
            <textarea  class="input input-large"  rows=13 name=sample_output cols=50></textarea>
        </p>
        <p align=left>
            测试输入
            <textarea  class="input input-large" rows=13 name=test_input cols=50></textarea>
            测试输出
            <textarea  class="input input-large"  rows=13 name=test_output cols=50></textarea>
        </p>
        <p align=left>更多组测试数据，请在题目添加完成后补充</p>
        <p align=left>提示:<br>
            <textarea class="kindeditor" rows=13 name=hint cols=80></textarea>
        </p>
        <p>
            特殊裁判: N<input type=radio name=spj value='0' checked>Y<input type=radio name=spj value='1'>
        </p>
        <p align=left>所属类别:<br>
            <textarea name=source rows=1 cols=666></textarea>
        </p>
        <div>
            难度等级：<br/>
            <table width="700" height="65">
                <tr><td width="23%">
                        <li style="list-style-type:none;"><input type=radio name=level value='1' checked>1级</li>
                        <li style="list-style-type:none;"><input type=radio name=level value='2'>2级</li>
                        <li style="list-style-type:none;"><input type=radio name=level value='3'>3级</li>
                    </td>
                    <td width="20%">
                        <li style="list-style-type:none;"><input type=radio name=level value='4'>4级</li>
                        <li style="list-style-type:none;"><input type=radio name=level value='5'>5级</li>
                        <li style="list-style-type:none;"><input type=radio name=level value='6'>6级</li>
                    </td>
                    <td width="20%">
                        <li style="list-style-type:none;"><input type=radio name=level value='7'>7级</li>
                        <li style="list-style-type:none;"><input type=radio name=level value='8'>8级</li>
                        <li style="list-style-type:none;"><input type=radio name=level value='9'>9级</li>
                    </td>
                </tr>
            </table>
            <div>
                <font color="blue">
                    分为: (程序设计基础、数据结构、基础算法)3个类别，9个难度等级。如：程序设计基础（一维数组、冒泡排序）
                </font>
            </div>
        </div>
        <!--题目来源-->
        <p align=left>题目来源:<br>
            <textarea name=fromoj rows=1 cols=666></textarea>
        </p>
        <!--所属比赛-->
        <p align=left><?php echo $MSG_CONTEST?>:
            <select  name=contest_id>
                <option value=''>none</option>
            </select>
        </p>
        <div align=center>
            <?php require_once("../include/set_post_key.php");?>
            <input type=submit value=提交 name=submit>
        </div>
    </form>
<p>
</div>
</body>
</html>
